package com.example.projectone;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    private Button muc_1;
    private Button muc_2;
    private Button muc_3;
    private Button muc_4;
    private Button muc_5;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        muc_1 = (Button) findViewById(R.id.uc_1 ) ;
        muc_1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //跳转页面到uc1
                Intent intent =new Intent(MainActivity .this,uc_1Activity .class) ;
                startActivity(intent);
            }
        });
        muc_2 = (Button) findViewById(R.id.uc_2 ) ;
        muc_2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //跳转页面到uc2
                Intent intent =new Intent(MainActivity .this,uc_2Activity .class) ;
                startActivity(intent);
            }
        });
        muc_3 = (Button) findViewById(R.id.uc_3 ) ;
        muc_3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //跳转页面到uc3
                Intent intent =new Intent(MainActivity .this,uc_3Activity .class) ;
                startActivity(intent);
            }
        });
        muc_4 = (Button) findViewById(R.id.uc_4 ) ;
        muc_4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //跳转页面到uc4
                Intent intent =new Intent(MainActivity .this,uc_4Activity .class) ;
                startActivity(intent);
            }
        });
        muc_5 = (Button) findViewById(R.id.uc_5 ) ;
        muc_5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //跳转页面到uc1
                Intent intent =new Intent(MainActivity .this,uc_5Activity .class) ;
                startActivity(intent);
            }
        });
    }
}
